import request from '@/utils/request'

// 查询业务线列表
export function listBusinessline(query) {
  return request({
    url: '/system/businessline/list',
    method: 'get',
    params: query
  })
}

// 查询业务线详细
export function getBusinessline(id) {
  return request({
    url: '/system/businessline/' + id,
    method: 'get'
  })
}

// 新增业务线
export function addBusinessline(data) {
  return request({
    url: '/system/businessline',
    method: 'post',
    data: data
  })
}

// 修改业务线
export function updateBusinessline(data) {
  return request({
    url: '/system/businessline',
    method: 'put',
    data: data
  })
}

// 删除业务线
export function delBusinessline(id) {
  return request({
    url: '/system/businessline/' + id,
    method: 'delete'
  })
}
